import request from '@/utils/request'
// 协议列查询
export function getProtoList(query) {
    return request({
        url: '/ecargoprotocol/protocolQuery/findByConditions',
        method: 'post',
        data: query
    })
}
// 协议保存
export function submitProtoInfo(data) {
    return request({
        url: '/ecargoprotocol/protocolInfo/protocolSubmit',
        method: 'post',
        data: data
    })
}
// 根据op协议号查询协议信息
export function findByNo(data) {
    return request({
        url: '/ecargoprotocol/protocolInfo/findByNo',
        method: 'post',
        data: data
    })
}
// 查询核心协议
export function findProtoBaseInfo(data) {
    return request({
        url: '/ecargoprotocol/protocolInfo/findPrEndorseByNo',
        method: 'post',
        data: data
    })
}

// 协议删除
export function deleteProto(data) {
    return request({
        url: '/ecargoprotocol/protocolInfo/protocolDelete',
        method: 'post',
        data: data
    })
}
// 协议禁用
export function disableProto(data) {
    return request({
        url: '/ecargoprotocol/protocolInfo/protocolDisable',
        method: 'post',
        data: data
    })
}

// 查询审核意见
export function queryAuditRecord(data) {
    return request({
        url: '/ecargopolicy/sysAuditrecord/queryAuditRecord',
        method: 'get',
        params: data
    })
}

// 审核提交
export function auditProtocol(data) {
    return request({
        url: '/ecargoprotocol/protocolAudit/auditProtocol',
        method: 'post',
        data: data
    })
}